home *** CD-ROM | disk | FTP | other *** search
Text File | 1992-07-15 | 601 b | 17 lines | [TEXT/ttxt] |
- Zoom-Rect-er
- DTS Code Snippet
-
- 1/6/92 Steve Falkenburg
-
- This snippet shows how to do "Finder" style zooming between two rectangles.
- The boolean flag "kZoomLarger" controls the proportional direction of the zooming.
-
- To get the two rectangles, you drag them out rubberbanded, and the zoom occurs between
- them. To quit, click the close box.
-
- If you want to do zooms between windows, open up a port with the dimensions of the desktop
- (from GetGrayRgn()).
-
- DON'T use this as a sample of how to do rubberband drawing!!! It's sort of hacked
- together bypassing the event mechanism and just using Button().
-